package com.travelgroup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("daily_schedule")
@Schema(name = "每日行程信息")
public class Schedule {
    @TableId(type = IdType.AUTO)
    @Schema(description = "每日行程id")
    private Long id;

    @Schema(description = "关联总行程id")
    private Long itineraryId;

    @Schema(description = "第几天行程")
    private Integer dayNumber;

    @Schema(description = "具体日期")
    private Date date;

    @Schema(description = "当日行程总结")
    private String summary;

    @Schema(description = "当日住宿地点（关联地点id）")
    private Long accommodationId;

    private LocalDateTime createTime;

    private Boolean deleted;
}
